package com.example.goods_manage.controller;


import com.example.goods_manage.dto.User;
import com.example.goods_manage.dto.request.GoodsRequest;
import com.example.goods_manage.service.GoodsService;
import com.example.goods_manage.service.IUserService;
import com.example.goods_manage.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jobob
 * @since 2024-09-05
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private IUserService userService;

    @GetMapping("/findUser")
    public AjaxResult findUser(User user){
        return userService.findUser(user);
    }

}
